
$(function(){ //on doc ready
    //set validation options
    //(this creates range messages from max/min values)
    $.validator.autoCreateRanges = true;
    $.validator.setDefaults({
        highlight: function(input) {
            $(input).addClass("ui-state-highlight");
        },
        unhighlight: function(input) {
            $(input).removeClass("ui-state-highlight");
        },
        errorClass: 'error_msg',
        wrapper : 'dd',
        errorPlacement : function(error, element) {
            error.addClass('ui-state-error');
            error.prepend('<span class="ui-icon ui-icon-alert"></span>');
            error.appendTo(element.closest('dl.ui-helper-clearfix').effect('highlight', {}, 2000));
        }
    });

    //call reformed and the validation library on your form
    $('#test').reformed().validate();
	
	$('#test').reformed({
            styleFileInputs : true, //use the uniform plugin to style file input boxes
            styleRadios : true, //style radios with uniform plugin
            styleCheckboxes : true, //style checkboxes with uniform plugin
            styleSelects : true, //style selects with uniform plugin
            styleButtonsWithUniform : false, //style all form buttons with uniform (false = styled by jquery UI)
            styleDatepicker : true //use jqueryUI datepicker
}).validate();



  $('#Form').reformed().validate();
	
	$('#Form').reformed({
            styleFileInputs : true, //use the uniform plugin to style file input boxes
            styleRadios : true, //style radios with uniform plugin
            styleCheckboxes : true, //style checkboxes with uniform plugin
            styleSelects : true, //style selects with uniform plugin
            styleButtonsWithUniform : false, //style all form buttons with uniform (false = styled by jquery UI)
            styleDatepicker : true //use jqueryUI datepicker
}).validate();




// valider heure
 $(".time").timepicker();
});
